﻿<Activity mc:Ignorable="sap sap2010 sads" x:Class="Artezio.SP.WorkflowActions.AddRoleAssignment"
 xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
 xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
 xmlns:mca="clr-namespace:Microsoft.CSharp.Activities;assembly=System.Activities"
 xmlns:p="wf://workflow.windows.net/$Activities"
 xmlns:p1="http://schemas.microsoft.com/workflow/2012/07/xaml/activities"
 xmlns:s="clr-namespace:System;assembly=mscorlib"
 xmlns:sads="http://schemas.microsoft.com/netfx/2010/xaml/activities/debugger"
 xmlns:sap="http://schemas.microsoft.com/netfx/2009/xaml/activities/presentation"
 xmlns:sap2010="http://schemas.microsoft.com/netfx/2010/xaml/activities/presentation"
 xmlns:scg="clr-namespace:System.Collections.Generic;assembly=mscorlib"
 xmlns:sco="clr-namespace:System.Collections.ObjectModel;assembly=mscorlib"
 xmlns:sn="clr-namespace:System.Net;assembly=System"
 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  <x:Members>
    <x:Property Name="BreakRoleInheritance" Type="InArgument(x:Boolean)" />
    <x:Property Name="CopyRoleAssigments" Type="InArgument(x:Boolean)" />
    <x:Property Name="PrincipalId" Type="InArgument(x:String)">
      <x:Property.Attributes>
        <RequiredArgumentAttribute />
      </x:Property.Attributes>
    </x:Property>
    <x:Property Name="RoleDefinitionId" Type="InArgument(x:Int32)">
      <x:Property.Attributes>
        <RequiredArgumentAttribute />
      </x:Property.Attributes>
    </x:Property>
    <x:Property Name="SecurableObjectApiPath" Type="InArgument(x:String)">
      <x:Property.Attributes>
        <RequiredArgumentAttribute />
      </x:Property.Attributes>
    </x:Property>
  </x:Members>
  <sap2010:ExpressionActivityEditor.ExpressionActivityEditor>C#</sap2010:ExpressionActivityEditor.ExpressionActivityEditor>
  <sap2010:WorkflowViewState.IdRef>Artezio.SP.WorkflowActions.AddRoleAssignment_1</sap2010:WorkflowViewState.IdRef>
  <TextExpression.NamespacesForImplementation>
    <sco:Collection x:TypeArguments="x:String">
      <x:String>System</x:String>
      <x:String>System.Collections.Generic</x:String>
      <x:String>System.Data</x:String>
      <x:String>System.Text</x:String>
      <x:String>Microsoft.Activities</x:String>
      <x:String>Microsoft.SharePoint</x:String>
      <x:String>System.Net</x:String>
    </sco:Collection>
  </TextExpression.NamespacesForImplementation>
  <TextExpression.ReferencesForImplementation>
    <sco:Collection x:TypeArguments="AssemblyReference">
      <AssemblyReference>Microsoft.Activities</AssemblyReference>
      <AssemblyReference>Microsoft.CSharp</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint.DesignTime.Activities</AssemblyReference>
      <AssemblyReference>PresentationCore</AssemblyReference>
      <AssemblyReference>PresentationFramework</AssemblyReference>
      <AssemblyReference>System</AssemblyReference>
      <AssemblyReference>System.Activities</AssemblyReference>
      <AssemblyReference>System.Activities.Presentation</AssemblyReference>
      <AssemblyReference>System.Core</AssemblyReference>
      <AssemblyReference>System.Data</AssemblyReference>
      <AssemblyReference>System.Drawing</AssemblyReference>
      <AssemblyReference>System.Runtime.Serialization</AssemblyReference>
      <AssemblyReference>System.ServiceModel.Activities</AssemblyReference>
      <AssemblyReference>System.Xaml</AssemblyReference>
      <AssemblyReference>System.Xml</AssemblyReference>
      <AssemblyReference>System.Xml.Linq</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint</AssemblyReference>
      <AssemblyReference>Microsoft.SharePoint.Client.ServerRuntime</AssemblyReference>
      <AssemblyReference>WindowsBase</AssemblyReference>
      <AssemblyReference>mscorlib</AssemblyReference>
      <AssemblyReference>Artezio.SP.WorkflowActions</AssemblyReference>
    </sco:Collection>
  </TextExpression.ReferencesForImplementation>
  <Sequence DisplayName="AddRoleAssignment" sap2010:WorkflowViewState.IdRef="Sequence_1">
    <If DisplayName="Check if SecurableObjectApiPath is empty" sap2010:WorkflowViewState.IdRef="If_8">
      <If.Condition>
        <InArgument x:TypeArguments="x:Boolean">
          <mca:CSharpValue x:TypeArguments="x:Boolean">string.IsNullOrWhiteSpace(SecurableObjectApiPath)</mca:CSharpValue>
        </InArgument>
      </If.Condition>
      <If.Then>
        <Sequence sap2010:WorkflowViewState.IdRef="Sequence_12">
          <p:AppOnlySequence DisplayName="Write to history" sap2010:WorkflowViewState.IdRef="AppOnlySequence_4">
            <p:AppOnlySequence.Body>
              <p:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_12" Message="AddRoleAssignment Exception: SecurableObjectApiPath can not be empty" />
            </p:AppOnlySequence.Body>
          </p:AppOnlySequence>
          <Throw sap2010:WorkflowViewState.IdRef="Throw_1">
            <InArgument x:TypeArguments="s:Exception">
              <mca:CSharpValue x:TypeArguments="s:Exception">new ArgumentException("AddRoleAssignment Exception: SecurableObjectApiPath can not be empty")</mca:CSharpValue>
            </InArgument>
          </Throw>
        </Sequence>
      </If.Then>
    </If>
    <Sequence DisplayName="MakeApiCalls" sap2010:WorkflowViewState.IdRef="Sequence_9">
      <Sequence.Variables>
        <Variable x:TypeArguments="x:String" Name="errorMessage" />
        <Variable x:TypeArguments="x:String" Name="logToHistory" />
      </Sequence.Variables>
      <If DisplayName="Break Role Inheritance" sap2010:WorkflowViewState.IdRef="If_5">
        <If.Condition>
          <InArgument x:TypeArguments="x:Boolean">
            <mca:CSharpValue x:TypeArguments="x:Boolean">BreakRoleInheritance</mca:CSharpValue>
          </InArgument>
        </If.Condition>
        <If.Then>
          <Sequence DisplayName="BreakRoleInheritance Logic" sap2010:WorkflowViewState.IdRef="Sequence_10">
            <Sequence.Variables>
              <Variable x:TypeArguments="sn:HttpStatusCode" Name="breakRoleStatus" />
              <Variable x:TypeArguments="p1:DynamicValue" Name="breakRoleResponse" />
              <Variable x:TypeArguments="x:String" Default="/breakroleinheritance({0})" Name="breakRoleMethodName" />
            </Sequence.Variables>
            <Assign sap2010:WorkflowViewState.IdRef="Assign_4">
              <Assign.To>
                <OutArgument x:TypeArguments="x:String">
                  <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                </OutArgument>
              </Assign.To>
              <Assign.Value>
                <InArgument x:TypeArguments="x:String">
                  <Literal x:TypeArguments="x:String" Value="" />
                </InArgument>
              </Assign.Value>
            </Assign>
            <p:AppOnlySequence sap2010:WorkflowViewState.IdRef="AppOnlySequence_1">
              <p:AppOnlySequence.Body>
                <p1:HttpSend sap2010:WorkflowViewState.IdRef="HttpSend_1" Method="POST">
                  <p1:HttpSend.RequestHeaders>
                    <InArgument x:TypeArguments="p1:DynamicValue">
                      <p1:SetDynamicValueProperties>
                        <scg:Dictionary x:TypeArguments="x:String, InArgument">
                          <InArgument x:TypeArguments="x:String" x:Key="Accept">application/json; odata=verbose</InArgument>
                          <InArgument x:TypeArguments="x:String" x:Key="Content-Type">application/json; odata=verbose</InArgument>
                        </scg:Dictionary>
                      </p1:SetDynamicValueProperties>
                    </InArgument>
                  </p1:HttpSend.RequestHeaders>
                  <p1:HttpSend.ResponseContent>
                    <OutArgument x:TypeArguments="p1:DynamicValue">
                      <mca:CSharpReference x:TypeArguments="p1:DynamicValue">breakRoleResponse</mca:CSharpReference>
                    </OutArgument>
                  </p1:HttpSend.ResponseContent>
                  <p1:HttpSend.ResponseStatusCode>
                    <OutArgument x:TypeArguments="sn:HttpStatusCode">
                      <mca:CSharpReference x:TypeArguments="sn:HttpStatusCode">breakRoleStatus</mca:CSharpReference>
                    </OutArgument>
                  </p1:HttpSend.ResponseStatusCode>
                  <p1:HttpSend.Uri>
                    <InArgument x:TypeArguments="x:String">
                      <mca:CSharpValue x:TypeArguments="x:String">SecurableObjectApiPath + string.Format(breakRoleMethodName, CopyRoleAssigments).ToLower()</mca:CSharpValue>
                    </InArgument>
                  </p1:HttpSend.Uri>
                </p1:HttpSend>
              </p:AppOnlySequence.Body>
            </p:AppOnlySequence>
            <If DisplayName="Check response status code" sap2010:WorkflowViewState.IdRef="If_6">
              <If.Condition>
                <InArgument x:TypeArguments="x:Boolean">
                  <mca:CSharpValue x:TypeArguments="x:Boolean">breakRoleStatus != HttpStatusCode.OK</mca:CSharpValue>
                </InArgument>
              </If.Condition>
              <If.Then>
                <Sequence sap2010:WorkflowViewState.IdRef="Sequence_15">
                  <p1:GetDynamicValueProperty x:TypeArguments="x:String" sap2010:WorkflowViewState.IdRef="GetDynamicValueProperty`1_1" PropertyName="error/message/value">
                    <p1:GetDynamicValueProperty.Result>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                      </OutArgument>
                    </p1:GetDynamicValueProperty.Result>
                    <p1:GetDynamicValueProperty.Source>
                      <InArgument x:TypeArguments="p1:DynamicValue">
                        <mca:CSharpValue x:TypeArguments="p1:DynamicValue">breakRoleResponse</mca:CSharpValue>
                      </InArgument>
                    </p1:GetDynamicValueProperty.Source>
                  </p1:GetDynamicValueProperty>
                  <If sap2010:WorkflowViewState.IdRef="If_10">
                    <If.Condition>
                      <InArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpValue x:TypeArguments="x:Boolean">string.IsNullOrWhiteSpace(errorMessage)</mca:CSharpValue>
                      </InArgument>
                    </If.Condition>
                    <If.Then>
                      <Assign sap2010:WorkflowViewState.IdRef="Assign_6">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">
                            <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                          </OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">
                            <mca:CSharpValue x:TypeArguments="x:String">String.Format("The server responded with a status of {0} ({1}). Request Uri: {2}", (int)breakRoleStatus, breakRoleStatus, SecurableObjectApiPath + string.Format(breakRoleMethodName, CopyRoleAssigments).ToLower())</mca:CSharpValue>
                          </InArgument>
                        </Assign.Value>
                      </Assign>
                    </If.Then>
                  </If>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_8">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">"AddRoleAssignment-BreakRoleInheritance Exception: " + errorMessage</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                  <If sap2010:WorkflowViewState.IdRef="If_17">
                    <If.Condition>
                      <InArgument x:TypeArguments="x:Boolean">
                        <mca:CSharpValue x:TypeArguments="x:Boolean">errorMessage.Length &gt; 255</mca:CSharpValue>
                      </InArgument>
                    </If.Condition>
                    <If.Then>
                      <Assign sap2010:WorkflowViewState.IdRef="Assign_9">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">
                            <mca:CSharpReference x:TypeArguments="x:String">logToHistory</mca:CSharpReference>
                          </OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">
                            <mca:CSharpValue x:TypeArguments="x:String">errorMessage.Substring(0, 252) + "..."</mca:CSharpValue>
                          </InArgument>
                        </Assign.Value>
                      </Assign>
                    </If.Then>
                    <If.Else>
                      <Assign sap2010:WorkflowViewState.IdRef="Assign_10">
                        <Assign.To>
                          <OutArgument x:TypeArguments="x:String">
                            <mca:CSharpReference x:TypeArguments="x:String">logToHistory</mca:CSharpReference>
                          </OutArgument>
                        </Assign.To>
                        <Assign.Value>
                          <InArgument x:TypeArguments="x:String">
                            <mca:CSharpValue x:TypeArguments="x:String">errorMessage</mca:CSharpValue>
                          </InArgument>
                        </Assign.Value>
                      </Assign>
                    </If.Else>
                  </If>
                  <p:AppOnlySequence DisplayName="Write to history" sap2010:WorkflowViewState.IdRef="AppOnlySequence_5">
                    <p:AppOnlySequence.Body>
                      <p:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_26">
                        <p:WriteToHistory.Message>
                          <InArgument x:TypeArguments="x:String">
                            <mca:CSharpValue x:TypeArguments="x:String">logToHistory</mca:CSharpValue>
                          </InArgument>
                        </p:WriteToHistory.Message>
                      </p:WriteToHistory>
                    </p:AppOnlySequence.Body>
                  </p:AppOnlySequence>
                  <Throw sap2010:WorkflowViewState.IdRef="Throw_5">
                    <InArgument x:TypeArguments="s:Exception">
                      <mca:CSharpValue x:TypeArguments="s:Exception">new ArgumentException(errorMessage)</mca:CSharpValue>
                    </InArgument>
                  </Throw>
                </Sequence>
              </If.Then>
            </If>
          </Sequence>
        </If.Then>
      </If>
      <Sequence DisplayName="AddRoleAssignment Logic" sap2010:WorkflowViewState.IdRef="Sequence_11">
        <Sequence.Variables>
          <Variable x:TypeArguments="sn:HttpStatusCode" Name="addPermissionStatus" />
          <Variable x:TypeArguments="p1:DynamicValue" Name="addPermissionResponse" />
          <Variable x:TypeArguments="x:String" Default="/RoleAssignments/AddRoleAssignment(principalId={0},roleDefId={1})" Name="addPermissionMethodName" />
        </Sequence.Variables>
        <Assign sap2010:WorkflowViewState.IdRef="Assign_5">
          <Assign.To>
            <OutArgument x:TypeArguments="x:String">
              <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
            </OutArgument>
          </Assign.To>
          <Assign.Value>
            <InArgument x:TypeArguments="x:String">
              <Literal x:TypeArguments="x:String" Value="" />
            </InArgument>
          </Assign.Value>
        </Assign>
        <p:AppOnlySequence sap2010:WorkflowViewState.IdRef="AppOnlySequence_2">
          <p:AppOnlySequence.Body>
            <p1:HttpSend sap2010:WorkflowViewState.IdRef="HttpSend_2" Method="POST" RetryOnConnectionFailure="False">
              <p1:HttpSend.RequestHeaders>
                <InArgument x:TypeArguments="p1:DynamicValue">
                  <p1:SetDynamicValueProperties>
                    <scg:Dictionary x:TypeArguments="x:String, InArgument">
                      <InArgument x:TypeArguments="x:String" x:Key="Accept">application/json; odata=verbose</InArgument>
                      <InArgument x:TypeArguments="x:String" x:Key="Content-Type">application/json; odata=verbose</InArgument>
                    </scg:Dictionary>
                  </p1:SetDynamicValueProperties>
                </InArgument>
              </p1:HttpSend.RequestHeaders>
              <p1:HttpSend.ResponseContent>
                <OutArgument x:TypeArguments="p1:DynamicValue">
                  <mca:CSharpReference x:TypeArguments="p1:DynamicValue">addPermissionResponse</mca:CSharpReference>
                </OutArgument>
              </p1:HttpSend.ResponseContent>
              <p1:HttpSend.ResponseStatusCode>
                <OutArgument x:TypeArguments="sn:HttpStatusCode">
                  <mca:CSharpReference x:TypeArguments="sn:HttpStatusCode">addPermissionStatus</mca:CSharpReference>
                </OutArgument>
              </p1:HttpSend.ResponseStatusCode>
              <p1:HttpSend.Uri>
                <InArgument x:TypeArguments="x:String">
                  <mca:CSharpValue x:TypeArguments="x:String">SecurableObjectApiPath + string.Format(addPermissionMethodName, PrincipalId, (int)RoleDefinitionId)</mca:CSharpValue>
                </InArgument>
              </p1:HttpSend.Uri>
            </p1:HttpSend>
          </p:AppOnlySequence.Body>
        </p:AppOnlySequence>
        <If DisplayName="Check response status code" sap2010:WorkflowViewState.IdRef="If_16">
          <If.Condition>
            <InArgument x:TypeArguments="x:Boolean">
              <mca:CSharpValue x:TypeArguments="x:Boolean">addPermissionStatus != HttpStatusCode.OK</mca:CSharpValue>
            </InArgument>
          </If.Condition>
          <If.Then>
            <Sequence sap2010:WorkflowViewState.IdRef="Sequence_20">
              <p1:GetDynamicValueProperty x:TypeArguments="x:String" sap2010:WorkflowViewState.IdRef="GetDynamicValueProperty`1_4" PropertyName="error/message/value">
                <p1:GetDynamicValueProperty.Result>
                  <OutArgument x:TypeArguments="x:String">
                    <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                  </OutArgument>
                </p1:GetDynamicValueProperty.Result>
                <p1:GetDynamicValueProperty.Source>
                  <InArgument x:TypeArguments="p1:DynamicValue">
                    <mca:CSharpValue x:TypeArguments="p1:DynamicValue">addPermissionResponse</mca:CSharpValue>
                  </InArgument>
                </p1:GetDynamicValueProperty.Source>
              </p1:GetDynamicValueProperty>
              <If sap2010:WorkflowViewState.IdRef="If_15">
                <If.Condition>
                  <InArgument x:TypeArguments="x:Boolean">
                    <mca:CSharpValue x:TypeArguments="x:Boolean">string.IsNullOrWhiteSpace(errorMessage)</mca:CSharpValue>
                  </InArgument>
                </If.Condition>
                <If.Then>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_7">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">String.Format("The server responded with a status of {0} ({1}). Request Uri: {2}", (int)addPermissionStatus, addPermissionStatus, SecurableObjectApiPath + string.Format(addPermissionMethodName, PrincipalId, (int)RoleDefinitionId))</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                </If.Then>
              </If>
              <Assign sap2010:WorkflowViewState.IdRef="Assign_11">
                <Assign.To>
                  <OutArgument x:TypeArguments="x:String">
                    <mca:CSharpReference x:TypeArguments="x:String">errorMessage</mca:CSharpReference>
                  </OutArgument>
                </Assign.To>
                <Assign.Value>
                  <InArgument x:TypeArguments="x:String">
                    <mca:CSharpValue x:TypeArguments="x:String">"AddRoleAssignment-AddRoleAssignment Exception: " + errorMessage</mca:CSharpValue>
                  </InArgument>
                </Assign.Value>
              </Assign>
              <If sap2010:WorkflowViewState.IdRef="If_18">
                <If.Condition>
                  <InArgument x:TypeArguments="x:Boolean">
                    <mca:CSharpValue x:TypeArguments="x:Boolean">errorMessage.Length &gt; 255</mca:CSharpValue>
                  </InArgument>
                </If.Condition>
                <If.Then>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_12">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">logToHistory</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">errorMessage.Substring(0, 252) + "..."</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                </If.Then>
                <If.Else>
                  <Assign sap2010:WorkflowViewState.IdRef="Assign_13">
                    <Assign.To>
                      <OutArgument x:TypeArguments="x:String">
                        <mca:CSharpReference x:TypeArguments="x:String">logToHistory</mca:CSharpReference>
                      </OutArgument>
                    </Assign.To>
                    <Assign.Value>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">errorMessage</mca:CSharpValue>
                      </InArgument>
                    </Assign.Value>
                  </Assign>
                </If.Else>
              </If>
              <p:AppOnlySequence DisplayName="Write to history" sap2010:WorkflowViewState.IdRef="AppOnlySequence_6">
                <p:AppOnlySequence.Body>
                  <p:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_27">
                    <p:WriteToHistory.Message>
                      <InArgument x:TypeArguments="x:String">
                        <mca:CSharpValue x:TypeArguments="x:String">logToHistory</mca:CSharpValue>
                      </InArgument>
                    </p:WriteToHistory.Message>
                  </p:WriteToHistory>
                </p:AppOnlySequence.Body>
              </p:AppOnlySequence>
              <Throw sap2010:WorkflowViewState.IdRef="Throw_6">
                <InArgument x:TypeArguments="s:Exception">
                  <mca:CSharpValue x:TypeArguments="s:Exception">new ArgumentException(errorMessage)</mca:CSharpValue>
                </InArgument>
              </Throw>
            </Sequence>
          </If.Then>
        </If>
      </Sequence>
    </Sequence>
    <p:AppOnlySequence DisplayName="Write to history" sap2010:WorkflowViewState.IdRef="AppOnlySequence_3">
      <p:AppOnlySequence.Body>
        <p:WriteToHistory sap2010:WorkflowViewState.IdRef="WriteToHistory_11" Message="AddRoleAssignment: Completed" />
      </p:AppOnlySequence.Body>
    </p:AppOnlySequence>
    <sads:DebugSymbol.Symbol>d21DOlxBbGlzYVxXb3JrZmxvd0FjdGlvbnNTYW5kYm94ZWRcQXJ0ZXppby5TUC5Xb3JrZmxvd0FjdGlvbnNcQWN0aW9uc1xBZGRSb2xlQXNzaWdubWVudFxBZGRSb2xlQXNzaWdubWVudC54YW1sY0gDrQMOAgEBSQVdCgMB3wNeBaYDEAIBBacDBasDGQIBAkwLTHsDAeADUAlbFAMB5gNjB4gCDAMB7gGJAgelAxICAQapAwmpA3gCAQNRC1UfAwHuA1YLWhMDAecDZg1mYAMB7wFqC4YCFgMB9wGNAjiNAnsCAQePAgmaAhIDAeEBmwIJuQIdAwG6AboCCaQDDgIBCKkDV6kDdQIBBFMPU6YBAwHvA1gPWK0BAwHoA248blgDAfgBcA17FgMB0gN8DZoBIQMBqwObAQ2FAhIDAfkBlwIPlwI+AwHtAZICD5ICYQMB4gGdAg23AhsDAbsBvQIPvQJ2AgEJwQINogMYAgEUU11TowEDAfADeBN4QgMB3gNzE3NlAwHTA34RmAEfAwGsA54BE54BdgMB+gGiARGDAhwDAYUCoAITpQIyAwHeAa8CE68CdQMB0wG0AhO0ArQBAwHIAaoCE6oCdQMBvQGdAk6dAlQDAbwBwgIPzQIsAwGiAc4CD+ICFAIBf+MCD+4CGAIBaO8CD5EDFAIBLpIDD5wDIwIBIZ0DD6EDFwIBFYEBF4YBNgMBzwOQAReQAXUDAcQDlQEXlQGuAQMBuQOLAReLAXUDAa4DflJ+WAMBrQOjAROuATADAZMDrwETwwEYAwHwAsQBE88BHAMB2QLQARPyARgDAZ8C8wET/QEnAwGSAv4BE4ICGwMBhgKiAk2iAmwDAeABowJTowJyAwHfAcUCFcUCZwMBrwHKAhXKAm8DAaQBwgKRAcICpgEDAaMB0QIV0QJ7AwGAAdUCE+ACHAMBiwHrAhXrApMBAgF05gIV5gJnAgFp8gIV8gJwAgEv9gITgQMcAgFRhAMTjwMcAgE6lAMTmgMmAgEinwMTnwN3AgEWgwFRgwFwAwHRA4QBV4QBdgMB0AOmARmmAWsDAaADqwEZqwFvAwGVA6MBlQGjAaoBAwGUA7IBGbIBfwMB8QK2ARfBASADAfwCzAEZzAGaAQMB5QLHARnHAWsDAdoC0wEZ0wF0AwGgAtcBF+IBIAMBwgLlARfwASADAasC9QEX+wEqAwGTAoACF4ACewMBhwLdAhndAr0CAwGXAdgCGdgCawMBjAH+Ahn+An0CAV35Ahn5AmsCAVKMAxmMA2MCAUaHAxmHA2sCATuXAxmXA2MCASO+AR2+Aa8CAwGIA7kBHbkBbwMB/QLfAR3fAYEBAwHOAtoBHdoBbwMBwwLtAR3tAWcDAbcC6AEd6AFvAwGsAvgBHfgBZwMBlAI=</sads:DebugSymbol.Symbol>
  </Sequence>
  <sap2010:WorkflowViewState.ViewStateManager>
    <sap2010:ViewStateManager>
      <sap2010:ViewStateData Id="WriteToHistory_12" sap:VirtualizedContainerService.HintSize="200,68" />
      <sap2010:ViewStateData Id="AppOnlySequence_4" sap:VirtualizedContainerService.HintSize="226,148">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Throw_1" sap:VirtualizedContainerService.HintSize="226,22" />
      <sap2010:ViewStateData Id="Sequence_12" sap:VirtualizedContainerService.HintSize="248,334">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_8" sap:VirtualizedContainerService.HintSize="486,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_4" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="HttpSend_1" sap:VirtualizedContainerService.HintSize="200,59" />
      <sap2010:ViewStateData Id="AppOnlySequence_1" sap:VirtualizedContainerService.HintSize="242,148" />
      <sap2010:ViewStateData Id="GetDynamicValueProperty`1_1" sap:VirtualizedContainerService.HintSize="509,22" />
      <sap2010:ViewStateData Id="Assign_6" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="If_10" sap:VirtualizedContainerService.HintSize="509,203">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_8" sap:VirtualizedContainerService.HintSize="509,59" />
      <sap2010:ViewStateData Id="Assign_9" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="Assign_10" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="If_17" sap:VirtualizedContainerService.HintSize="509,203" />
      <sap2010:ViewStateData Id="WriteToHistory_26" sap:VirtualizedContainerService.HintSize="200,68" />
      <sap2010:ViewStateData Id="AppOnlySequence_5" sap:VirtualizedContainerService.HintSize="509,148">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Throw_5" sap:VirtualizedContainerService.HintSize="509,22" />
      <sap2010:ViewStateData Id="Sequence_15" sap:VirtualizedContainerService.HintSize="531,981">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_6" sap:VirtualizedContainerService.HintSize="242,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_10" sap:VirtualizedContainerService.HintSize="264,460">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_5" sap:VirtualizedContainerService.HintSize="464,603">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_5" sap:VirtualizedContainerService.HintSize="242,59" />
      <sap2010:ViewStateData Id="HttpSend_2" sap:VirtualizedContainerService.HintSize="200,59" />
      <sap2010:ViewStateData Id="AppOnlySequence_2" sap:VirtualizedContainerService.HintSize="242,148" />
      <sap2010:ViewStateData Id="GetDynamicValueProperty`1_4" sap:VirtualizedContainerService.HintSize="509,22" />
      <sap2010:ViewStateData Id="Assign_7" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="If_15" sap:VirtualizedContainerService.HintSize="509,212">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Assign_11" sap:VirtualizedContainerService.HintSize="509,62" />
      <sap2010:ViewStateData Id="Assign_12" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="Assign_13" sap:VirtualizedContainerService.HintSize="242,62" />
      <sap2010:ViewStateData Id="If_18" sap:VirtualizedContainerService.HintSize="509,212" />
      <sap2010:ViewStateData Id="WriteToHistory_27" sap:VirtualizedContainerService.HintSize="200,68" />
      <sap2010:ViewStateData Id="AppOnlySequence_6" sap:VirtualizedContainerService.HintSize="509,148">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Throw_6" sap:VirtualizedContainerService.HintSize="509,22" />
      <sap2010:ViewStateData Id="Sequence_20" sap:VirtualizedContainerService.HintSize="531,1002">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="If_16" sap:VirtualizedContainerService.HintSize="242,49">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_11" sap:VirtualizedContainerService.HintSize="264,460">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">False</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_9" sap:VirtualizedContainerService.HintSize="486,816">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="WriteToHistory_11" sap:VirtualizedContainerService.HintSize="200,68" />
      <sap2010:ViewStateData Id="AppOnlySequence_3" sap:VirtualizedContainerService.HintSize="486,148">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
            <x:Boolean x:Key="IsPinned">False</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Sequence_1" sap:VirtualizedContainerService.HintSize="508,1217">
        <sap:WorkflowViewStateService.ViewState>
          <scg:Dictionary x:TypeArguments="x:String, x:Object">
            <x:Boolean x:Key="IsExpanded">True</x:Boolean>
          </scg:Dictionary>
        </sap:WorkflowViewStateService.ViewState>
      </sap2010:ViewStateData>
      <sap2010:ViewStateData Id="Artezio.SP.WorkflowActions.AddRoleAssignment_1" sap:VirtualizedContainerService.HintSize="548,1297" />
    </sap2010:ViewStateManager>
  </sap2010:WorkflowViewState.ViewStateManager>
</Activity>